package com.ljy.my_study.io.NIO.server;

import java.nio.ByteBuffer;

/** 
* @author James
* @date 2018年11月6日 
*/
public class BufferCarrier {
	private ByteBuffer readBuffer;
	private ByteBuffer writeBuffer;
	
	public BufferCarrier(int readCapacity,int writeCapacity) {
		this.readBuffer=ByteBuffer.allocate(readCapacity);
		this.writeBuffer=ByteBuffer.allocate(writeCapacity);
	}

	public ByteBuffer getReadBuffer() {
		return readBuffer;
	}
	public void setReadBuffer(ByteBuffer readBuffer) {
		this.readBuffer = readBuffer;
	}
	public ByteBuffer getWriteBuffer() {
		return writeBuffer;
	}
	public void setWriteBuffer(ByteBuffer writeBuffer) {
		this.writeBuffer = writeBuffer;
	}
	
	
}
